import http from '@/design/libs/request/request'
const BASE_URL = '/maintain'

export default {
  // 获取列表数据
  list: data => http.post(BASE_URL + '/list', data),
  // 获取数据
  fetch: (id) => http.post(BASE_URL + '/fetch/' + id),
  // 更新数据
  update: data => http.post(BASE_URL + '/update', data),
  // 更新状态
  disable: data => http.post(BASE_URL + '/disable', data),
  // 排序数据
  sort: data => http.post(BASE_URL + '/sort', data),
  // 同步数据
  synchro: data => http.post(BASE_URL + '/synchro', data),
  // 获取楼层列表
  floors: data => http.post(BASE_URL + '/floors', data),
  // 所有营业部门
  departments: data => http.post(BASE_URL + '/departments', data),
  // 所有部门
  deptList: data => http.post(BASE_URL + '/deptList', data)
}
